/* ===== VARIABLES ===== */
:root {
    --color-primary: #7B5E44;
    --color-primary-light: #A68B73;
    --color-primary-dark: #5D4733;
    --color-background: #F5F0E9;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-border: #E0D6C9;
    --color-error: #D64045;
    --color-success: #4CAF50;
    --shadow-light: 0 2px 10px rgba(123, 94, 68, 0.1);
    --shadow-medium: 0 4px 20px rgba(123, 94, 68, 0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Background decoration */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%237B5E44" fill-opacity="0.05" d="M30,10 L70,10 L90,30 L90,70 L70,90 L30,90 L10,70 L10,30 Z"/></svg>');
    background-size: 300px;
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.logo span {
    color: var(--color-primary-light);
}

.logo i {
    margin-left: 5px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

nav a:hover {
    background-color: rgba(123, 94, 68, 0.08);
}

nav a.active, 
nav a.btn-login.active {
    color: var(--color-primary);
    font-weight: 700;
}

.btn-login {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--color-primary-dark);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
}

/* ===== AUTH SECTION ===== */
.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-decoration {
    flex: 1;
    background-color: rgba(123, 94, 68, 0.05);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.decoration-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.decoration-content h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 28px;
}

.decoration-content p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.decoration-image {
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.auth-decoration::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(123, 94, 68, 0.05);
}

.auth-decoration::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(123, 94, 68, 0.05);
}

.auth-forms {
    flex: 1;
    padding: 40px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.auth-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--color-primary);
}

.auth-tab.active {
    color: var(--color-primary);
    font-weight: 700;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
}

.input-with-icon input {
    padding-right: 40px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 94, 68, 0.15);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-left: 8px;
    accent-color: var(--color-primary);
}

.forgot-password {
    color: var(--color-primary);
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.btn:hover {
    background-color: var(--color-primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

.social-login {
    margin-top: 30px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border);
}

.divider span {
    position: relative;
    background-color: var(--color-white);
    padding: 0 15px;
    color: var(--color-text-light);
    font-size: 14px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: var(--transition);
}

.social-button.facebook {
    background-color: #3b5998;
    color: white;
}

.social-button.google {
    background-color: #db4437;
    color: white;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.form-terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.form-terms input[type="checkbox"] {
    margin-left: 8px;
    margin-top: 5px;
    accent-color: var(--color-primary);
}

.form-terms label {
    font-size: 14px;
    line-height: 1.5;
}

.form-terms a {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-white);
    padding: 50px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about p {
    margin: 15px 0;
    color: var(--color-text-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(123, 94, 68, 0.1);
    color: var(--color-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 14px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-decoration {
        padding: 30px;
    }
    
    .decoration-image {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .auth-forms {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        width: 100%;
        text-align: center;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
